package com.biwu.JSON;

/**
 * @author 王俊彪
 * @version 1.0
 */
public class Student {
    private int sno;
    private String sname;
    private String gender;
    private int age;

    public Student() {
    }

    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno=" + sno +
                ", sname='" + sname + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                '}';
    }

    public Student(int sno, String sname, String gender, int age) {
        this.sno = sno;
        this.sname = sname;
        this.gender = gender;
        this.age = age;
    }
}
